package com.demo1;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Controller;@Controllerpublic class AController {    @Autowired    private Student student;    //A用户使用公共的student对象    public void getStudent()    {        System.out.println("A使用 ->" + student);        Student s = student;        s.setName("李四");        System.out.println("A使用 ->" + student);    }}